<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()
</script>

<template>
  <div class="not-found-container">
    <h1>404</h1>
    <p>抱歉，您访问的页面不存在</p>
    <button @click="router.push('/')">返回首页</button>
  </div>
</template>

<style scoped>
.not-found-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

h1 {
  font-size: 5rem;
  margin-bottom: 1rem;
  color: #666;
}

p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

button {
  padding: 0.75rem 1.5rem;
  background-color: #42b983;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}
</style>
